package com.example.demo.client.evt.sysbasequery;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author zhengmf
 * @Date 2018/12/25  17:12
 */
@ApiModel("用户组是否同名")
public class IsGroupNameEqualEvt implements Serializable {
    private static final long serialVersionUID = 2129831173028724872L;
    @ApiModelProperty("新增发的是用户组的父id，编辑发的是用户组的id")
    private Long groupId;
    @ApiModelProperty("用户组名称")
    @NotBlank
    private String groupName;
    @ApiModelProperty("1：新增，2：编辑")
    @NotNull
    private Short type;

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "IsGroupNameEqualEvt{" +
            "groupId=" + groupId +
            ", groupName='" + groupName + '\'' +
            ", type=" + type +
            '}';
    }
}
